package com.project.controller;

import com.project.bean.EmployeeBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/info")
    public String getInfo(){
        return "hello,中国";
    }

    @RequestMapping("sp")
    public String speak(){
        return "说话";
    }

    @RequestMapping("add")
    public String add(EmployeeBean em,@RequestParam("money") Integer mone){

        return "添加成功"+em+"   "+mone;
    }
}
